package com.bawei.mallshop.splash

import com.bawei.common.mvi.BaseRepository
import com.bawei.network.HttpType
import com.bawei.network.ResponseEntity
import com.bawei.network.RetrofitFactory
import kotlinx.coroutines.flow.Flow

/**
 * @author ZhangRuiPeng
 * @description:
 */
class SplashRepository : BaseRepository(){

    fun requestToken(map: Map<String,Any>):Flow<ResponseEntity<String>>{
        return RetrofitFactory.factory(HttpType.SIGN)
            .create(ApiService::class.java)
            .requestToken(createRequestBody(map))
    }

}